package com.xiaoyang.customerservice.controller;

import com.xiaoyang.customerservice.feign.CustomerRentFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @auther XiaoYang
 * @DATE 2023/5/5-11:39
 */
@Slf4j
@RestController
public class CustomerController {

    @Resource
    private CustomerRentFeign customerRentFeign;

    @GetMapping("/customerRent")
    private String CustomerRent(){
        log.info("客户来租车了~");
        //RPC
        String rent = customerRentFeign.rent();
        return rent;
    }

}
